import React, { Component } from 'react'
import './LikeButton.css'
class LikeButton extends Component {
    constructor(props) {
        super(props);
    }
    render() {
        console.log('AganLog:===>state.props',this.props);
        return (
            <div className="like_button_div" style={{background:this.props.like?'#ccc':'#ff6868'}} onClick={()=>this.props.handleLike(!this.props.like)} >
                {this.props.like ? '已赞' : '👍'}
            </div>
        );
    }
}
export default LikeButton 